/*
 * @Author: 杨超
 * @Date: 2021-06-07 15:26:26
 * @LastEditTime: 2021-10-11 11:20:30
 * @LastEditors: 杨超
 * @Description: 公路养护预算接口
 */
import CommonApi from './common'

// 公路养护预算
class BudgetingApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/maintbudgetmanage'
    }

    // 详情
    detail(data) {
        const path = this.resolvePath('/detailsById')
        return this.post(path, data)
    }

    // 锁定
    lock(data) {
        const path = this.resolvePath('/lock')
        return this.post(path, data)
    }

    // 取消锁定
    unlock(data) {
        const path = this.resolvePath('/unlock')
        return this.post(path, data)
    }
    // 所属单位树结构
    managementTree() {
        const path = this.resolvePath('/managementTree')
        return this.post(path)
    }
}

export default BudgetingApi
